import React, {Component} from 'react';

export default class Tag extends Component {
    constructor(props) {
        super(props);
        this.state = {};
    }

    render() {
        return (
            <div className={'tags-box'}>
                <div className={'tag-item'}>{this.props.text} <span onClick={ ()=>this.props.del(this.props.tid) }>×</span></div>
            </div>
        )
    }
}